#include "mywifi_manager.h"
#include "led_control.h"
#include "server_file_handling.h"

extern ESP8266WebServer esp8266_server;
void setup()
{
  Serial.begin(9600);
  pinMode(LED_BUILTIN1, OUTPUT);
  pinMode(LED_BUILTIN2, OUTPUT);

  setupWiFi();

  if (!LittleFS.begin())
  {
    Serial.println("打开LittleFS错误");
  }
  else
  {
    Serial.println("LittleFS 已启动");
  }
  init_Server();
  Serial.println("HTTP server started");
}

void loop()
{
  esp8266_server.handleClient();
}
